package com.hxw.schema.decorator;

/**
 * Created by Think on 2018/5/4.
 */
public class FineryP extends Pig {
    private Pig pig;
    public void decorate(Pig pig){
        this.pig = pig;
    }
    @Override
    public void show(){
        if(pig != null){
            pig.show();
        }
    }
}
